package com.xmut.mall.order.controller;

import java.util.Arrays;
import java.util.Map;

import com.xmut.mall.order.annotation.CheckJwt;
import com.xmut.mall.order.utils.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.xmut.mall.order.entity.AfterSaleLogEntity;
import com.xmut.mall.order.service.AfterSaleLogService;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.utils.R;

@RestController
@RequestMapping("order/aftersalelog")
public class AfterSaleLogController {
    @Autowired
    private AfterSaleLogService afterSaleLogService;

    /**
     * 根据售后sn号码获取售后日志
     * @param sn
     * @return
     */
    @CheckJwt
    @GetMapping("/getAfterSaleLog/{sn}")
    public RespBean getAfterSaleLog(@PathVariable String sn){
        return afterSaleLogService.getAfterSaleLog(sn);
    }
}
